import Mock from 'mockjs'



let list = Mock.mock({
  'list|10':[
    {
      'name':'@first',
      'sex|1':['男','女'],
     // 'age|1':['20','23','26','28','30','34','32','36','40','50','25','31','37'],
      'age':'@integer(20,70)',
      'deptType|1':[
        {
          id:1,
          type:'人事部'
        },{
          id:2,
          type:'财务部'
        },{
          id:3,
          type:'技术部'
        }
        ],

      'position|1':['经理','员工','科长'],
      'usable|1':[true,false]
    }
  ]

});

let deptTypes=Mock.mock([
  {
    id:1,
    type:'人事部'
  },{
    id:2,
    type:'财务部'
  },{
    id:3,
    type:'技术部'
  }
]);


export default {
  list:list,
  deptTypes:deptTypes
}
